-- GENERATED SPELL FOR [Scion of Eternity] --


function spell0_30249(pUnit, Event) --@Arcane Barrage,n/a--
pUnit:FullCastSpellOnTarget(56397,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30249', 581, 1)
end

function Sorts_30249(pUnit, Event)
local choix_sorts_30249 = math.random(0, 0)
if choix_sorts_30249 == 0 then
pUnit:RegisterEvent('spell0_30249', 1, 1)
end
end

function mob30249_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30249', math.random(1500, 3000), 1)
end

function mob30249_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30249_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30249_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30249, 1, 'mob30249_Action')
RegisterUnitEvent(30249, 2, 'mob30249_Leave')
RegisterUnitEvent(30249, 3, 'mob30249_Kill')
RegisterUnitEvent(30249, 4, 'mob30249_Die')
